<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css/base.css">
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/css/style.css">
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-2.1.4.min.js"></script>
		<title>查看简历</title>
		<script type="text/javascript">
		
		function xiajia(){
			var str=$("#id").val();
			 if(str!=""){
				 $.ajax({
					 	url:"/staff/stop.json?ids="+str,
						success: function(data){
							alert(data.info);
						}
					});
			 }
		}
		
		function xiugai(){
			$("#myform").submit();
		}
</script> 
	</head>
	<body>
	<form action="${pageContext.request.contextPath}/staff/edit.html" id="myform" method="post">
		<div class="page">
			<!--查看简历-->
			<div class="mask_view_resume">
				<div class="view_resume">
					<div class="resume_title clearfix">
						<p class="fl"><i>${staff.wSName}</i>      的简历</p>
						<a href="javascript:history.go(-1);" class="fr close">关闭</a>
					</div>
					<div class="resume_bottom">
						<input type="hidden" id="id" name="id" value="${staff.id}"/>
						<%-- <input type="hidden" id="wSType" name="wSType" value="${staff.wSType}"/> --%>
						<span class="on"><a href="#" onclick="xiajia();">人员下架</a></span>
						<span><a href="#" onclick="xiugai();">修改资料</a></span>
					</div>
					<div class="resume_top clearfix">
						
						<c:if test="${not empty staff.wSAttacId}">
				        <img src="${pageContext.request.contextPath}/attach/images/${staff.wSAttacId}.jpg" class="resume_tx fl">
				        </c:if>
				        <c:if test="${ empty staff.wSAttacId}"> 
				        <img src="${pageContext.request.contextPath}/images/images/staff.png" class="resume_tx fl">
				        </c:if> 
						
						<div class="resume_xinxi fl">
							<p class="mb10">${staff.wSName}</p>
							<p><span>
								<c:if test="${staff.wSWorkerStatus eq 1}">
								在职
								</c:if>
								<c:if test="${staff.wSWorkerStatus eq 0}">
								待岗
								</c:if>
							</span>
							<span>
								<c:if test="${staff.status eq 1}">
								已上架
								</c:if>
								<c:if test="${staff.status eq 0}">
								已下架
								</c:if>
							</span></p>
						</div>
					</div>
					<div class="resume_main">
						<h3>基本信息</h3>
						<div class="basic_information clearfix">
							<div>
								<p>身份证号 : <i><input type="text" name="wSIdcard" id="wSIdcard" value="${staff.wSIdcard}"/> </i></p>
								<p>籍      贯 : <i><input type="text" name="wSNation" id="wSNation" value="${staff.wSNation}"/> </i></p>
								<p>年      龄 : <i><input type="text" name="wSAge" id="wSAge" value="${staff.wSAge}"/></i></p>
							</div>
							<!-- <div>
								<p>婚      姻 : <i>已婚</i></p>
								<p>民      族 : <i>汉族</i></p>
								<p>属      相 : <i>龙</i></p>
							</div> -->
							<div>
								<p>手机号码 : <i><input type="number" name="wSTelephone" id="wSTelephone" value="${staff.wSTelephone}"/></i></p>
								<p>类      型 : <i>
							  		<c:if test="${staff.wSType0==1}">临时保洁 </c:if>
									<c:if test="${staff.wSType1==1}">长期钟点工</c:if>
									<c:if test="${staff.wSType2==1}">住家保姆 </c:if>
									<c:if test="${staff.wSType3==1}">看护老人</c:if>
									<c:if test="${staff.wSType4==1}">育婴师</c:if>
									<c:if test="${staff.wSType5==1}">月嫂</c:if>
									<c:if test="${staff.wSType6==1}">医院护工</c:if>
									<c:if test="${staff.wSType7==1}">开锁换锁</c:if>
									<c:if test="${staff.wSType8==1}">管道疏通</c:if>
									<c:if test="${staff.wSType9==1}">马桶维修</c:if>
								</i></p>
								<p>学      历 : <i><input type="text" name="wSEdu" id="wSEdu" value="${staff.wSEdu}"/></i></p>
							</div>
						</div>
					</div>
					<div class="resume_main">
						<h3>求职信息</h3>
						<div class="job_information">
							<p>工作状态 : <i>
								<select name="wSWorkerStatus" id="wSWorkerStatus" >
								
								<option value="1"  <c:if test="${staff.wSWorkerStatus==1}"> selected="selected" </c:if> >在职</option>
								
								
								<option value="0" <c:if test="${staff.wSWorkerStatus==0}"> selected="selected" </c:if> >待岗</option>
								</select>
							</i></p>
							<p>目标区域 : <i><input type="text" name="wSAddress" id="wSAddress" value="${staff.wSAddress}"/></i></p>
							<p>个人特长 : <i><input type="text" name="wSSpecial" id="wSSpecial" value="${staff.wSSpecial}"/></i></p>
							<p>个人简介 : <i>
							<textarea rows="5" cols="80"  name="wSDesc" id="wSDesc">${staff.wSDesc}</textarea>
							</i></p>
						</div>
					</div>
					<div class="resume_main">
						<h3>求职意向</h3>
						<div class="job_intention">
							<p class="title">
							<c:if test="${staff.wSType0==1}">临时保洁 </c:if>
									<c:if test="${staff.wSType1==1}">长期钟点工</c:if>
									<c:if test="${staff.wSType2==1}">住家保姆 </c:if>
									<c:if test="${staff.wSType3==1}">看护老人</c:if>
									<c:if test="${staff.wSType4==1}">育婴师</c:if>
									<c:if test="${staff.wSType5==1}">月嫂</c:if>
									<c:if test="${staff.wSType6==1}">医院护工</c:if>
									<c:if test="${staff.wSType7==1}">开锁换锁</c:if>
									<c:if test="${staff.wSType8==1}">管道疏通</c:if>
									<c:if test="${staff.wSType9==1}">马桶维修</c:if>
								
								</p>
							<p>工作内容 : <i>${staff.wSItems}</i></p>
							<p>期望工资 : <i>${staff.wSPriceFirst}-${staff.wSPriceSecond}元/月</i></p>
							<p>工作经验 : <i>${staff.wSWokerYear}年</i></p>
							<!-- <p class="title">月嫂</p>
							<p>工作内容 : <i>月子餐、开奶、恶露观察</i></p>
							<p>期望工资 : <i>6000-8500元/月</i></p>
							<p>工作经验 : <i>2年</i></p> -->
						</div>
					</div>
					<div class="resume_main">
						<h3>证书</h3>
						<c:if test="${not empty certificore}">
						<c:forEach items="${certificore}" var="cert">
						<div class="certificate">
							<p class="zhengshu">相关证书：<span>${cert.wCeName}</span></p>
							<div class="zhengshu_main clearfix">
								<div class="zhengshu_name fl">${cert.wCeName}</div>
								<div class="zhengshu_img fl">
								
								 	<c:if test="${not empty cert.wCeAttacId}">
							        <img src="${pageContext.request.contextPath}/attach/images/${cert.wCeAttacId}.jpg" class="zs_img">
							        </c:if>
							        <c:if test="${ empty cert.wCeAttacId}"> 
							       <img src="${pageContext.request.contextPath}/images/images/zhengshu.png" class="zs_img">
							        </c:if> 
								
								</div>
							</div>
						</div>
						</c:forEach>   
						</c:if>
						<%-- <div class="certificate">
							<p class="zhengshu">相关证件：<span>身份证</span></p>
							<div class="zhengshu_main clearfix">
								<div class="zhengshu_name fl">身份证</div>
								<div class="zhengshu_img fl">
									<img src="${pageContext.request.contextPath}/images/images/sfz.png" class="zs_img">
								</div>
							</div>
						</div> --%>
					</div>
				</div>
			</div>
		</div>
		</form>
	</body>
</html>
